
import fetch from '@/utils/fetch'

export function isOnline(wechatId) {
    return fetch.get('/pc/isOnline', {
        wechatId: wechatId
    })
}

export function getWxGroupList(wechatId) {
    return fetch.get('/pc/getWxGroupList', {
        wechatId: wechatId
    })
}

export function getWechatFriendList(wechatId) {
    return fetch.get('/pc/getWechatFriendList', {
        wechatId: wechatId
    })
}

export function getBlack(wechatId) {
    return fetch.get('/pc/getBlack', {
        wechatId: wechatId
    })
}

export function addBlack(data) {
    return fetch.post('/pc/addBlack', data)
}

export function delBlack(wechatId) {
    return fetch.get('/pc/delBlack', {
        wechatId: wechatId
    })
}

export function blackPageList(query) {
    return fetch.post('/pc/black/pageList', query)
}


export function forwardSave(data) {
    return fetch.post('/pc/forward/save', data)
}

export function forwardStat(data) {
    return fetch.post('/pc/forward/stat', data)
}

export function forwardPage(data) {
    return fetch.post('/pc/forward/pageList', data)
}

export function addStatistics(data) {
    return fetch.post('/pc/addStatistics', data)
}

export function circleStatistics(data) {
    return fetch.post('/pc/circleStatistics', data)
}

export function saveStatData(data) {
    return fetch.postJson('/pc/saveStatData', data)
}

export function queryStatData(data) {
    return fetch.post('/pc/queryStatData', data)
}
